code downloaded from eriksfönsterputs 2014-09-07