video logic is not working