changing height to be dynamic