meanof optimization + simple definition on complex numbers