convert to long in doSize
do it right