updated so that I don't have to use a bash function to call it