minor modification on controller tmp