define the squcube function