replace var name from temp to meaningful names