moved if statement for no data up
moved if statement for no data up
moved if statement for no data up
moved if statement for no data up
moved if statement for no data up
moved if statement for no data up