add constructor annotation for closure