typed some short pseudocode out..