added constants to Function
updated version