changed main script