fixed return value (was always false)