add overoaded method get with extra arg: f