cleaned up code

fixed brackets