working on error focus