changed signature *[]struct to []struct to get a bit cleaner client code