need to typecast to int