add scale height code