added post processing functions