deleted pseudo code