printing correct values