basics of $apply()`