fix prototype