added replace and filter methods.
removed each.
updated revision