change float to dict, rm methods, and correct import