more work on processing sample