added step6 for c&b and some bug fixes attempts