correct order check for id in get