corrected bug in prism