removed "printf debugging"