variable based array length (no hard coding)