exceptions implemented for testing phase