removed debug from ref - it looks ok