added bg as a reference