modified error messaging.