working parallel version using @everywhere in the initalisation part