refined application code