removed read code