seg fault bug fixed for villa! this version can be submitted