make sure id is integer