small amounts of optimization