fixed a for script