moved the take function to .functions