remove unused begin statment