empty arrays to be returned if sizes are zero