fix variable use