code improved

mistakes removed,
unified header row