Fixing function types, private vs protected