cleaned unnecessary function