using correct array sizes when drawing