added comments more organized