added an alt solution