replace " with ', remove unused variable