interface for square representation