idealtype service psuedo code 수정