protected func added

Signed-off-by: valpatsk <valpatsk@gmail.com>