working on implementation part
complete bucketing