removed useless logs and added useful print statements