removes pointless duplicate of keys into a list and instead just tests membership of severity in dict