using apply in overload