added cube restriction