created each function