added Ira's script 2