declaring bytes filter and re-using it inside of the directive