fix bug related to unused import and function not being updated in relation