fixing protocol issue