update id checking in the get method