added appify function