corrected code to use the correct library