shortening my code.