just trying to make a more elegant solution