fixed warning for int