added shahid's script