had to assign float to every class