made script faster