created a parent function