debug info deleted. atoi deleted. read func added