replace error with a better standard behaviour