added canvas function outline