removed debug and fixed bucket item usage