edited format of pseudocode