fixed the apply function
comman-support