Making list static and deleting some not necessary lines