correcting var transposition
adding db