remove comment
refactor conversions to clarify intentions of various variables