major changes
fixed the die error
changed escape logic on : count