encapsulate to avoid error