deleted improper pseudocode