getting rid of some warnings about borders