adding Apply node