store rectangle coordinates as float to save memory