shortening code