last bit of processing