cleaned up the code : no more unused arguments like "reading_position"