adding functs