added layer in fromJson