adding skip function