made height function of desired percent