passing blocksize as a parameter