static to instance to fix loosing data issue.