x dir correction