refactor for frames simulator #78