working on checkIfBG()
working on checkIfBG()