updates colours of borders. not sure if i keep this