changed 'dist' to get better matching