changed variable types and name for bucket check