removed leftover pseudo code