cleanup
added ecco func