basic optimizer with no logic