fix function errors in var