implementation for errors added