loop instead of apply