fixed frank bugs