shortening the code