finished working on errors