added lock deifinition to bucket