app modified with new func