working on errors