simplifies code