created pseudocode