bracket function reader
unit test for bracket functions