added prechecked functionality