changed definition of Index from short to long because value may exceed capacity of short