clean up reference BMG