executing with apply