move free to appropriate place in hlp control