added categories and alert