parent now receives error class