handle case for non-integers also