bit copy implementation