fix complex method