adding commented error cases