seed function works