developing application to take and process role