get the common code in attributes inside utils