using glob to iterate through files