trying to fix function-idea