not working with scanner