code for self evaluation