delete and dynamic data
reformat code