added rules for .+ and .-