unnecessary variables removed, calculations called in generate bill