add skipping function