almost there...debugging left and right