add back-end to add pills