added clone functionality - it speeds things up