add constructors for value class