initial copy from a16x66