added args as an array in apply