pseudocode out some stuff