adding clear function for compiled data