starting tool code