converted mymin and mymax values to variables floating type and all the dependanceys to work with this floating stuff