reduced function to one line