added base and flags(linear deep decremetion)