figurng out a bug