added constants property to constructor