handeling single end