code analysis

logical frame