update gems
code tidy up