usage in frontend