cleaned up a few errors in syntax