better way of running this