procedure 9
refactor manager
fixed bugs