added if statement

if statement give a free page