improve error method
remove comments