removed unused variable "square"