little optimizatoin of the constructor.