correction of true_divide
improved axis indexing and lookup