adding custom errors