switch to static allocation