works in console