assignment on functions