one quadrant function working