reformated and changed a type such that height option works