removed unused ctx