modifying static variable len