ugly but working?