refined numpy syntax