added solution to prot problem