fixed compeer warning by changing int type