corrected an error in checking task
optimised import