enable curved or squared by parameter