get and put operations for complex numbers