removed unnecessery printfs