added separate type param for frag type