lists:filtermap is not supported in older erl