switched to broadcasting operator instead of loop