missing bracked at elaborate function added