just adding my prototype code