wrapping to prototype