move code in temp to AM class