apply modifications