normalize type with margin 0