fixed initial bitmask array problem, had to malloc instead of declare
something happened to my vm install