script a little bit corrected