added first variable in pagination