shortening up some code.