added clean code to misc