changed height to be dynamic