small updates on functions