added psheduocode