added {} on lines 435 and 80