added private and arrays