refactorying component ,by using prototype model