coding error, not handled correclty