added input
fixed paggination
changed file name generation