Can handle boundary conditions and improved contrast  between A and B
greens