added return quad, fixed sintax