renamed old package to temp and fixes for min/max