finished writing methods with a minor crash