bug solved. need to remove printf