minor modifications to arrays