fixed the use function