fixing extraneous curly brace