added skip function