get func  working proto