remove unnecessary function from init