removing dict protocol lines