error checking for presence of helpful elements