removed previous function
fixed docs