work in progress
corrected bugs in hack
work in progress