removed duplicate bgi snippet