maybe fixed bug with line being drawn