fix: memory leak
clean code