corrected missing curly brace