trying to figure out where the bug is. A is less then t