refactored with send method
deleted old code and comments