created basic working method