working on restructure implementation of application/c