Resolviong gray bgs