close #17 border values reimplemented