add planarity and reorder output arguments
fix a bt in phi direction