changed code inside bucket-small and bucket-large