printfs removed. Its working.