added gReatcions functionality, removed a for loop that was unneccsary