moved include into function