speed up with a little association table