Ad hoc solution for protein substitutions