finalized threshold and some styling