fix minor brackets and object processing