myeqsub() and myeqresub() is done more safely