convert with two bgs