removed badmalloc (thx for the pointer to Uriel)