changed @sides to > from >=