implemented mousetrap