adding pseudo-code for site manager