formula graph creation code is filled in