fixed json array optional
added function composition