Working on: Frame construction
cleaning code in frame creation