added initial implementation for mapBuffer