removing some steps in the script