there are things in both of the above lines that should be constants