avoided seg violation
included isGoodLumi() function
const where possible