another way I could do this