created method to do all post processing