organized code into more concise chunks with labels