error checking for id's
error checking for id's, fixing reporting