added functions for circle and square