created setFeedLength() function