change function from protected to public