copying more from magnar