moved comp to top, added quadrent check