removed unused functiona