trying to make it one line calculations