dont crash at the end