missed pseudo-code

added pseudo-code I missed