improved the syntax for bwt functions