tweaked end results of snippet to make them work better