class setup implemented without pagination