now remembers previous setting
modified style a bit and added more lines