fixed if/else error in adjustQuadrant