fail function, fixes