fix to end