added string/int check and new meth for id or name