changed the sequence of complex.py