end contract worked