avoid using comp with more than 3 functions