some reference optimization

too lazy to do real work