change filtermap to map in some code, filtermap does not exist before R16