fix success variable