Added changes in apply