third try, better but still broken