nicer conversion method