another serie of corrections
fix ref