changed some faulty return values to implicit errors