auto compute fileds