updated with new code and actually works