hooked up square to dynamic data