fixes pass-through apply function