ADDED IN MULTI_THREADER FUNCTION