can this be written in a more readable way?