added squaring events, tied in with transactions