fixing skipped function