read functioning-not incrementing pointer