pre calculate options for speeding up