working test + fix type