added fs func