bugfix: was using wrong constants