removing $apply