when cookies are cakey, it's often because the fat:sugar:flour ratio is off. having too much flour will generally cause drier and cakier cookies. too much flour is usually a result of measuring it improperly. always weigh your ingredients instead of using volume for better results.