function overloading with readbed