error propagation fix