added method to determine square values