added typer function