implemented id int check