implementation of Apply action