framwork code