updated post to reflect functional API