pseudocode additions