ref exercise fixes