copying from lappy