changing up way of passing in dimensions