error handling for not enough storage error