moving apply stuff around