added more appropriate error msg