using tested code in app