add simple map method to buffer