implemented management anagraphic.
clean up code.