added replacer
added frequency counter