a buggy version