Step 1 for nodes drawing