removed height var this will be used for result