cursor tool - clean code