forgot to remove an extra fi at the end