import forEach function
improve filter,clone function