Hengjean elemwise optimization