changes to def square