added macro for calculating array length