refactoring, better debugging with function describe