better check for id