Removed the apply function use