Added error message
first implementation