floor is not needed when casting to int